import {Component} from '@angular/core';
import {HttpService} from './httpService';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.less']
})
export class AppComponent {
  constructor(private http: HttpService) {
  }

  title = 'powerSystem';
  show = true;
  apiHost = '';


  handleSubmit(): void {
    this.show = true;
    this.http.setHost(this.apiHost.trim());
  }
}
